package com.tmy.sst.service;

import com.tmy.sst.domain.mybatis.User;
import com.tmy.sst.dao.mybatis.UserDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;


@Service
public class UserService {

	@Autowired
	private UserDao userDao;

	@Transactional
	public User getById(Integer id) {
		User user = userDao.getById(id);
		return user;
	}
	

}